package com.yh.correct.model;

import java.util.Date;

import org.springframework.format.annotation.DateTimeFormat;

/**
 * 同案犯表
 * 
 * @author 王卫
 *
 */
public class Accomplice {
	/**
	 * 编号
	 */
	private int id;
	/**
	 * 姓名
	 */
	private String name;
	/**
	 * 性别
	 */
	private String sex;
	/**
	 * 出生日期
	 */
	@DateTimeFormat(pattern="yyyy-MM-dd")
	private Date birthday;
	/**
	 * 罪名
	 */
	private String charge;
	/**
	 * 刑期
	 */
	private String x_date;
	/**
	 * 家庭地址
	 */
	private String address;
	/**
	 * 联系电话
	 */
	private String phonenum;
	/**
	 * 矫正人员ID
	 */
	private int pid;

	public int getId() {
		return id;
	}

	public void setId(int id) {
		this.id = id;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getSex() {
		return sex;
	}

	public void setSex(String sex) {
		this.sex = sex;
	}

	public Date getBirthday() {
		return birthday;
	}

	public void setBirthday(Date birthday) {
		this.birthday = birthday;
	}

	public String getCharge() {
		return charge;
	}

	public void setCharge(String charge) {
		this.charge = charge;
	}

	public String getX_date() {
		return x_date;
	}

	public void setX_date(String x_date) {
		this.x_date = x_date;
	}

	public String getAddress() {
		return address;
	}

	public void setAddress(String address) {
		this.address = address;
	}

	public String getPhonenum() {
		return phonenum;
	}

	public void setPhonenum(String phonenum) {
		this.phonenum = phonenum;
	}

	public int getPid() {
		return pid;
	}

	public void setPid(int pid) {
		this.pid = pid;
	}

	@Override
	public String toString() {
		return "Accomplice [id=" + id + ", name=" + name + ", sex=" + sex + ", birthday=" + birthday + ", charge="
				+ charge + ", x_date=" + x_date + ", address=" + address + ", phonenum=" + phonenum + ", pid=" + pid
				+ "]";
	}

}
